FILES =main.cpp stringutil.cpp
TARGET=app.exe
OBJS  =main.o stringutil.o sqlite3.o

MINGW =$(MINGW_PATH)
LIBS  = -L"$(MINGW)\lib" -static-libgcc -static-libstdc++
CFLAGS= -I"$(MINGW)\include"
CPP   =g++.exe

all: build

build: compile
	@$(CPP) -Wall -s -Wno-write-strings -O2 -o $(TARGET) $(OBJS) $(LIBS)

compile: $(FILES)
	@$(CPP) -Wall -s -Wno-write-strings -O2 -c $(FILES) $(CFLAGS)
